package com.rftennis.service.impl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Service;

import com.common.OrderUtil;
import com.rftennis.ao.OrderItemAo;

import com.rftennis.dao.OrderItemDao;
import com.rftennis.dto.ItemResult;
import com.rftennis.dto.QueryResult;
import com.rftennis.entity.OrderEntity;
import com.rftennis.entity.OrderItemEntity;
import com.rftennis.entity.ProductEntity;

import com.rftennis.service.OrderItemService;

import lombok.NonNull;


@Service
public class OrderItemServiceImpl implements OrderItemService{
	@Autowired
	OrderItemDao dao;
	
	

	@Override
	public ItemResult<OrderItemEntity> selectOrderItem(@NonNull String orderId) throws Exception {
		List<OrderItemEntity> result=dao.selectOrderId("order_id", orderId);
		ItemResult<OrderItemEntity> resultdto=new ItemResult<OrderItemEntity>();
		resultdto.setRows(result);
		return resultdto;
	}

}
